Added get_last_position() and get mode functions

get_lastposition() returns the last position tuple on the position
history array.
Also added self-explainatory is_relative_mode() and is_absolute_mode()