forecast: fix 'undefined' in header
forecast - removed unused code
amazon - template function references