Finalized the Linux port and even more debug messages