Updated indentation and documentation