add missing imports, simplified a bit and reworded a few comments
Merge branch 'master' of https://github.com/aodn/imos_user_code_library