first GUI implementation done. Unstable.