Moved destination creation into s seperate funcion.
Fixed --dest not inserting into index.html in controller and directives
Made this whole thing alot more generic