Encapsulate Function and Module properly, move string literals from Function to Module (dataSegment), update tests accordingly