Added usage information and corrected mistakes