Logrithm function added, main returns value now