added contribution guidelines and fixed some coding style issues.