Added inline documentation for all methods.