Initial commit. Base code for Clires v4.0