edit some typo errors and added more spec tests