Add some documentation
Fixes for pipelining runtime
Implement memory assignment.
Fix errors in runtime