bugfixes
added ammonia_offset_calculation and 4-4 through 8-8 lines