added new files, changed lcd driver to comply with c standards