update to 2.51  and code cleanup

update to 2.51 (ask for by Herrie)    and code cleanup
Open-WebOS-DCO-1.0-Signed-Off-By: john mcconnell  johnmcconnell@yahoo.com