Updates.

+ Code clean up.
+ Documentation.