Finished the main UI
Added some documentation