first changes

Added location class
converted read function
start click functions