Compiles correctly in arduino environment. type(), version() and voltage_level() updated. temperature() created. Standardised variable types. Version and type static vars added.