Rewrite some conditions in more concise way

I imported BondDir, BondType, and ChiralType classes to be able to rewrite some
of conditional statements in more concise and hopefully clearer way.