code beautification
closed form of weighted-degree kernel
cleanup of test cases