Added validation functions to Classes.
Updated signature for plot function.
Improved documentation.