cleanup and minor refactoring
cleanup hook complete
build correct build arch directory
ready for publish to hex