added documentation, small changes and adding default decimals