added RTL support

removed all files except for sources and examples, and updated the code
to add RTL support.