Started labbook import + a few bugfixes