Data types and return values were modified, function compAddress() was
added, function getKey() was rewritten to findKey()

Signed-off-by: Bleska <blecha.jiri@gmail.com>