move lib files to root, add dynamic reloader