added waitConnected attribute to mininet class

fixes #80 
fixes #165