Adds csv writer to catalogue parser
Improves occurence behaviour, csv parsers, general fixes
Merge pull request #18 from g-weatherill/fixes_v1

First set of general fixes and improvements