moved code to lib folder
updated README