Cleaned the code a lot

Replaced tabs with whitespaces for alignement, expanded the .animate() methods, removed useless code.