State revenue down, deficit narrows in 2016