Implemented castconfig
changelog updated
simulation code
Important optimization in castLike