return real values if possible
add comments
remove unused variables
remove old rand() and srand()