module and function names
Domain class
sortVector
minor fixes