created all function files

and proper directories