Added CHYP functioin

Too lazy to say what it does. Use your brain.