Added error handlers for opening nonexistent input files
Added append function, improved intersection, reunion and coding style