Move main outside of package
Rename to better name
Add on_finish and on_execute hooks