Added source formatting and more pyDoc comments