Moved code files to lib, moved all requires to one place