Added shiny app fixed bugs