Updated with Subject ID, study ID and persistent data logging.
Stable version with server uploading.
lock on settings fixed
changes