* Added comments and docstrings
* changed a combination of lstrip/rstrip in a strip