cleaned up the local touch module to modularize the functionality
fixed some white space formating