Allowed for classes at the front

Created a new constructor with boolean classfront. If false, same as
previous, if true, reads class from the front of each line.