Bug fixes.

Fixed decimals not working properly and some other giltches.