use service class for handling data and add authentication
update .gitignore
add json support for getLatest