Extract port_map into very top.
Make code more readable.
Add tests for get_version method.