A bunch of bug fixes, the code now runs without error