Reorganise files into lib folder.