Reorganized methods in classes. Also added 3/4 of the necessarily
documentation.