* added explicit return to each subroutine
* use io::file for file io