now supports different panel types and writing, still a few things needs fixing, see TO DOs in the source code