main script updated

added functions necessary to build decision tree, bugs need to be worked
out (initial split is working, subtrees are not)