fixed issue with writing merged file. cleaned/condensed code. removed install instructions from file in order to move to README