changed function/variable names, expanded readme