Store achd period as unsigned long int
Add achd option for last frame

* last frame is implied by setting a period