Added help and usage function. Beginning to chunk up this script into functions for easier readibility. Added logging in silent mode
commented out the dump.html. It was only ever there for debugging/testing and it isnt needed currently