Nonstatic factories, Added ParsedMessage class and some bug fixes