don't leave period at the end of lines, added PUT method to factories.js and controllers.js