new option: gaussian noise
adjusted tests
fixed a scaling factor bug
cleanup