renamed 'cont' to 'iscont'. made 'iscont' and 'ispost' ints. adjusted code according to the new interface.