Final code commit

Everything working as it should, hopefully. Correct-looking graphs are
produced and data looks fine.