Updated license to BSD-2. Updating codestyle, adding design_principles.
Merge branch 'buildtool' of github.com:/apetrone/gemini into buildtool