Refactored code. Added functions for csv export and checking for NoneTypes
Merge remote-tracking branch 'origin/master'