Cleaned and organized things a bit.
Updated profiling script.