pass logger to machine
move parsing to separate function
Rename code to space, because fungespace
add extensive logs for all operations