"It seems that the people who now own the company acknowledge that he was the cofounder but feel that "well he didn't do much, so he doesn't deserve his full shares. The law doesn't work like that."
Exactly. The founding documents are controlling, unless later modified by a contract signed by the parties.