Add templates, error handling and path validification
Add templates, error handling and path validification