IntermediateCode: Add missing function signatures.
IntermediaCode: Use more subfunctions
IntermediaCode: Some more docs.