removed enter and exit code on modular interface
writing predicted labels to serialized file