This text is missing some spaces, please add them: Herealizedthatthiswastheperfectbasisforestablishingashipsmithy,whichhestartedinasmallshed.
He realized that this was the perfect basis for establishing a ship smithy, which he started in a small shed.