updated code

listview is working now. once text file writing finalised alarm side of
app is done.