updated spec and state diagram

added API for ci-piMapping