Fix carriage-return functionality
move examples to examples dir