added explicit type comparisons
unit testing without cmdline + code cleanup + doc update