remove pure
remove static from static methods
fix use statements
fix cast syntax
assert -> assert!
const -> static for global constant
fix usage of extern