Added composer file
Changed TravisCI config so coveralls.io will work
Fix to prevent a warning being displayed when the constructor doesn't receive the template