Added return values
Updated documentation
More documentation