updated coding style and added some settings