minor restructure core.main in function
Merge branch 'master' of github.com:phfaist/bibolamazi