Added error code scenarios.
Added Procfile for Heroku.