last_segment & segment_x

adding 2 more variables
Merge pull request #14 from pmeissner/master

last_segment & segment_x
Merge branch 'master' into gh-pages