changes to get accuracy scoring working, fix feature function
overflow fix