Changed Number.ceil() to Number.roundUp() and Number.floor() to Number.roundDown(), some other small fixes.