Finished implementation of div/mod. Added samples, fixed some bugs