More refactoring

Moved content to separate files and moved other examples to files in examples folder.