Allow the user to specify a directory to parse, also users can omit the pkg flag if they wish
A lit more elegant handling of file paths
Don't be lazy about iteration
don't make this un-checked type assertion