Changed CRLF to NUL as an end marker in Clock
Various fixes
Emulated devices keep their state in memory after creation