Add support for right to left direction
Little improvements
Add new cfg values