Code reformatted

Translated all the debugging text into English (for internationalisation)

Replaced all the try/catch clauses with throw signatures (gives the user more flexibility debugging their code the way they want)