Added more elements.
Fix a bunch of compiler errors, and implement more math types.