Added some explanitory comments and some method stubs.