removed useless whitespace
debug stuff
minor optimizations
finalized rating