port over main class code, fix runtime bugs, first runnable version!
missing files