add comments
refactor some init code, so it can be reused (within the otf-util
library) by lego-editor code, and by anyone else that wants it.