he walked for several blocks past the large warehouses packed tightly together near the railroad switch yards , then passed through an area of small shops and markets which catered to the needs of the railroad and warehouse laborers who lived and worked nearby .