added more assertion errors, and updated readme with another example.