moved constants from portal.cpp to portal.h
added 'manual' version of tests/simple_manual test program