Added further exception handling (I hope!) and initial configuration / setup script