parity, new test functions added, better inline comment
minor update -- not stable