Refactor/file generator

Using phpspec file generator for file templates