refactor/cleanup binding generator
change binding generator to also work for external projects
amend