Added databox and cleaned code.