Fixed the error states, and some misc bugs. Basic testing, and recipes reqired for testing there.