Integrate bugfixes from Misanthropos' repository

Issue #35 resolved
Gennady Trafimenkov repo owner created an issue

User Misanthropos from the Bear's Pit Forums has git repository with some bugfixes and probably new features.

Repository: https://github.com/misanthropos/ja2

Some info can be found here: http://www.ja-galaxy-forum.com/board/ubbthreads.php/topics/305479/Re_JA2_git_repository_availabl.html#Post305479

Need to check the source codes, extract bugfixes and apply them here.

Reported by Scheinworld from BPF.