added drawing in gui, simple main/core functions