Refactored termpredictor, ready to migrate new PERL script into ensemblmapper.