I would add : in terms of finding a legit inspector, don't rely on the realtor to make the recommendation for you. The realtor is focused on closing - they are sales people. The focus on closing in not aligned with your interest - you want to close ONLY IF there are no serious issues with the property. Search for the inspector accreditation organizations (I don't remember the names), and choose one with high level credentials. A good inspector should take at least 2-3 hours to thoroughly check out / test all of the systems, check the levelness of the foundation, etc.
Don't be afraid to walk away if the inspection finds serious issues, but also if you have a thorough inspector, it is also important to recognize that almost EVERY house has issues of some kind - most are very minor. I have bought 8 properties and sold 4 (including one my wife had before we married), and there are always at least some issues. Sometimes it's an issue of codes and standards changing over time. A good inspector will note those, but it doesn't mean you need to change things. As an example, in our most recent sale, the buyers noted a couple of places where there should have been GFCI (I added), gutters that had some debris (we hadn't bothered with cleaning them as we got it ready for sale - slipped our minds), tub / shower switch (diverter) that was sticking in "tub" setting, outside A/C compressor that "needed cleaning" (even though we had it serviced a few months before), dryer connection w/ 3 prong instead of the newer 4 prong, and an outside circuit breaker box that was showing wear / rusting (after 30 years), and a number of other nits. The buyers pushed us for concessions, but I added the GFCI, fixed the diverter, and cleaned the gutter (fun), and conceded nothing further. The buyers went forward. It was a very well-maintained house, but it was more than 30 years old, so there are minor issues.
I hope that helps you have some perspective. You want a very picky inspector, but you have to be careful to not freak out when they give you a report with 20-30 "issues".
Also, avoid PMI (mortgage insurance) if at all possible. If you can swing it, I think a 15 year mortgage is better - enables building equity faster. I would also set it up where you pay your insurance and property taxes directly, rather than using an escrow account - these are a money-maker for the banks / mortgage companies (so not as good for you).
Good luck!