Added choice of flat or 3d style to create view
Added new init constructor that takes optional style