update code: debugs + adds
mal doc