created main function
set results and lcd to globals