added support for all directions
Fix syntax and indentation
Update readme and bump version