Better output handling, BOOK not destroyed automaticaly
Output handling when starting from command line