new small example, refactoring of Direction, minor changes
small fixes, added comments