Fixed compiler errors
Add some example code
implementing segString()
implementing to_string functions