created debug to lcd system; refactored...