Added crpix1 to protobuf, split code into modules.