Now accepts a date as argument, to know pom of a diff date. Corrected some typos, and a logic error of mine 😄