Moved ruby files to lib directory