[knot] use ids instead of objects for resouce list
[knot] use google c++ styleguide to beautify code