printing output on SIGINT
pointer bugfix
windows support