Removed some thesis stuff. Added cpt support to wp get archives function.