Further dev. Now does file logging, plays nice with spike2.