Added rotational checking on composition tree
Removed debug prints