added example and showcasing error messages
1.0.1