Started adding documentation to the start of scripts, documenting parame...

...ters, returns and description  of function.