Added assert tests, made output reader friendly