bugfixing, compiler and  toplevel completion improvements, panel refactoring