refactored petsjs and updated pet add functionality
added ignore file