replaced 7-segment functions with LCD functions; added main codes in main()