Optimizations

Id like to go through the entire script and optimize it. right now its not as clean as I want it to be.