Added comments. Code clean up.