Added documentation and proper synchronization to the Swing callbacks
Added tournament and made a few more changes