Added filter, last, split. Modified dir and map. Changed print to log to avoid confusion/conflict with native print.