Finished re-factoring. All features back to normal

Added:
* resizing
* pausing
* proper sleeping
* OO design (as sloppy as it is)