added some examples for basic usage and dependency validation, along with some minor code changes