fixed readLayoutFile
fixed Spectramax parser
fixed some tests

check still fails!