Allow longer ben strings and code cleanup
Replaced atol() by strtol()