Set dev flag to false and remove some surplus code. Ready for initial release.