Some error messages added. Error packet handling left