All warnings fixed. More documentation added.