fixed indent problems, fixed most mistakes, added sawwave