A once-homeless man has published a book about homeless shelters and his five-year experience with homelessness.