Fixes -g bug and adds .yml for travis CI