Rename core to lib