fixes and math init
Add basic math example