Create archive template and fix archive related problems (fixes #1, fixes #17)
Actually add archive template