Converting indentation to spaces. Adding documentation.