Added background noise, refractoring and reordering in functions, style corrections to conform to PEP, added full LGN data