Use CGFloat/NSInteger insetead of float/integer.
Cleaned up interactive demo a bit.