git ignore
bug fixing, and fixed some code to enable g++ compilation