* elevated warnings to fatal
* encapsulation into main() function
* creation of "global" $g hash with locked keys