Minor bug fixes.
Merge pull request #23 from izhbannikov/dev

Minor bug fixes.