Changes in the initialization and stdout

Added init function to address the initialization of the library
Added LOG_STDOUT variable to allow standard output dumping