Added some commentary, slimed down some unnecessary code and 
mad a small refactorization.