1) Add generation of csv as output 2) Added help/usage section 3) Code cleanup