added update; small fixes