Removed unnecessary extensions.
Added type safe matrix creation, inverses, and transpose. Also added documentation.