remove unused functions
fix two way DCT test
more documentation
test documentation