Begun streamlining code and commenting.

Started removing redundant code and streamlining functionality that
appeared in multiple instances into their own classes. Started adding
comments formatted for code hinting with FlashDevelop. Updates the demo
to use classes rather than timeline code.