Update Readme and tests

Added @inbounds and digits() function.