Moving functions into sub folder. Adding examples.