removes rubygems dependency
reorg app file