fix bug in angle(), extend examples
fix docstring of angle_2d()
fix docstring for using doctest
enable testing via doctest