Mostly done with parameters.
Fix writing.
Fix some module references.
Fix translation. Add asserts till it type checks.