move the lib directory and add factors to the readme