Merge pull request #5 from blender/9662f8610329f2a0ccd017535d752bbcb24c7b55

Critical Index fix + changed init
Merge pull request #6 from blender/master

Fixed Project Files + Implemented example
Apply coding convention on new code
Fix issue that causes endless loop and breaks tests