move source files into lib/ folder