Made construct and addDefaultOrigins functions public
- Made construct and addDefaultOrigins functions public (was originally protected).
- This is to support the java backend implementation (these functions are called explicitly from the python api builder code, because all the information is generated there)