added function to move cursor to function location - fixes #3