added close() for weight learners and inference objects; minor fixes