Tidied up error reporting libs.
New parsing function.
First type extension test.