moved all to lib folder, used the require example template