added create file functionality