Fixed API tutorial - Issue #11

Fixed the infinite loop in CPIData#load_from_file.  API tutorial now works as shown on website.