further bug fixes and comment on getPeers; simple working test case in flow/main