modified lookup functions in analysis file and used write.table to add the 'grams' file even though they will be rewritten. Also added ui and server file for shiny app.