Merge pull request #3 from simbag/master

Pull request 2
apple and directions
Merge pull request #4 from bianconeri23/master

apple and directions
Simplified function apple
Merge pull request #5 from bianconeri23/master

Simplified function apple
Added newDirection4Keys