before becoming a full-timenovelist , heworked as atechnical writer for the railway industry , a corporate writer for private and public sectors , a human resources manager andan underground surveyor .