Moved add echo statements to end.
Better chmod for add function.
Typo