Ammends

Fixes for archive and functions php