Cleaning up Code, fix pause issues

Wrote specs for some methods. Cleaned up js code. More coming soon! 

See #26 for remaining pause bug