moved goal functions to separate file; added functions to add/remove item