moved main.cc to more appropriate name, added phase select test
added write clock test and config generator