Add setOption method, add lib folder with dependencies, code cleanup'