added parsing for write functionality
removed depreciated modules, general cleanup and added mediocre function docs
completed csv writing functionality