Company URL should be inside CDATA
Fixed error in level names, added stack traces, added comments
Fixed error in validity checks