Fixed CS issues and integrated with Travis