fixed minor errors and spacing