Sweet tab animations

Added sweet tab animations, cleaned up some code according to CodeKit.