Fix a few compiler warnings and minor issues in functions
Merge branch 'master' of https://github.com/paradigm4/load_tools