loggin timestamp added, error handling added, dataset space added