update namespace with predict function
cosmetic/commenting changes to predict