Minor changes. Necessary to improve some functionality to create alams periodically