Added soft_lock function
Updated several comments
Fixed return integer values (more functions print a 1 or 0 for true /
false).