fixing indentation and documentation