Make it library
Add trget dir & autoloading