removes extra spaces and reduces indentation in rb files