Partial 5.4.1, 5.4.2, 5.4.3

Made classes file reader general