moving library to submodule
Add library submodule
Refactor to support library submodule