Fixed some embarrasing errors
Moved example to new folder to make more examples. Adapted to new API. Cleaned up.
Added TMS example