more updates. errors...work to some degree. re-wrote error-clearing function