Compiles correctly in arduino environment. type(), version() and voltage...

..._level() updated. temperature() created. Standardised variable types. Version and type static vars added.