Issue #6 Removed incorrect if
Issue 6# Fixed getting public key (includes workaround)
Fixed typo
Issue #6 Added test files