Congress passed legislation allowing additional flexibility for qualifying 529 withdrawals. The big inclusion is for computer-related expenses made in the same year that college expenses are incurred. The legislation also allows for a 60-day window to re-contribute funds that were overdrawn similar to the 60-day window for IRAs. The first linked article provides a broad overview of 529 plan basics and the second includes details on the new legislation and other best practices guidelines for 529 use. As always, consult your CPA for definitive guidance on any tax-related questions.
http://www.kiplinger.com/article/college/T002-C000-S001-529-plan-faqs.html
http://www.usatoday.com/story/money/2016/05/15/now-529-plans-can-used-college-supplies/84290702/