triangle state machine added, check for inconsistent state is missing
Merge branch 'master' of https://github.com/cakl/iOSTriangleView