check type of argument in add_element method
added state command parse method
added helper method for checking number of arguments