first draft of swimming pool model

all changes that should be necessary to get this to work, starting
debugging from here
bugs that caused compile/link issues

fixed problems