convert indent to space 2
improve code style
remove logs
remove manual codes
Exception Handling( divided zero, negative values, others )
modified parameters
add doc