Updated parser implementation to exclude interfaces from class list