Merge pull request #3 from schtibe/devel

Introduced getopt and port numbers
Merge pull request #4 from schtibe/devel

Fixed the arguments
* made schtibe port patch more platform independant
Merge remote-tracking branch 'ganwell/devel' into merge