added environment and history files
saved history added to general r work