Update save function
-Remove console.logs
-Implement logging