fixed PdV problem, removed some more comments, cleaned up code, reduced size of function calls