moved files to lib dir, added gemfile