Added history buffers
Modified openmp thread numbers
Direct access to lattice elements through maps
Added gain/offset error attributes