clear_stream function
fixed get_option()
make all small aux funcions inline

smalloc() and clear_stream()