Added some common ignored files into .gitignore
Added missing prototype
LOG error and warning messages are more informative