Added some error handling, AND/OR operators

I've also found a bug with word breaking which I'll be fixing up next.
Fixed word breaking

Also added z80 flag conditions