fix missing sys import
exit if no timeframe was determined
Merge pull request #24 from aspiers/timeframe-fixes

minor fixes to timeframe code