Moved calpha into its own file.

Added unit test.