Order the version numbers correctly
Add "build" and "market" optional args to version function