fixed direction.pyx to stop calculating wrong thing and made computation lazy (now way too slow)
added skeleton feature (pure python, infeasibly slow)