Putting all the code from the current master branch of TWBlue