reorg the CS code
rename thforge to thcrypt