added function to write out basic environment information, added function call to all bash scripts