Added public API for Thinker; renamed header and functions