automatically send to server if it is accessible
some tidying up
some cruicial fixes to the saving proccess