Post bug

Moved age generating code into model part, and fixed bug with posting