Tidies up some code in model.php
Updates DEV_LOG.txt