added examples folder and restructured code