v1.0 Added check4update with debugging code
v1.0 Added check4update, ready for master