Turtle rewrite

complete rewrite of the turtle module