Date problem fixed
Added editing functions