Fixed minor errors and indentation