Fixed directory issue with tokens, added option to retrieve past plans