Optimized speed further by enabling some optimizations, cleaned up code by changing all whitespace to tabs