add signum method, fix comments