added goto start/end of document

Change-Id: Id1376e6507074ecca67e4d34357ae6bff0c6b41d
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>