Merge pull request #16 from dkorolev/master

Created port.h, plus some code removal and refactoring.