Add partial fraction decomposition, remove other useless stuff.