Removed arbitrary port range
Added copyright header
Refactored binary.Read/Writes for better error handling
Made initial connectionId a constant