commented the PSoC code