1. Added an error message in case no url was rovided as input.
2. Added JavaDoc for all methods.