implementing validate_package(), few variable renames
added some comments about return expectations for get_packages(), really need to standardize it in some way