minor changes
fixed a bug with the year not being found, also refactored the entry point function to be more generic in the avenue of a test file