Added some helper scripts for testing and automation. Handling minor bugs as they come up by brute force testing.