fixed plotting bug, added smarter random LC generation and optional gaussian noise