added writing of hash to BITMAP images. have not figured out how to do this for pdf/eps yet
added returning of legend handle to addlegend.m
bugfix for labelling in dcline