Large update of both source code and docs
postgis fixes
removed unused images