Slimmed down library...
Fixed compile error
updated sample