BUGFIX: fixed bugs.
FEATURE: added validation for cycleness.