Use flexbox. Add copyright notice. Fixes #2.