fixed some bugs, added division and mod.

uses xilinx div core v3. will make it compatible with all v3 cores
evenutally.