somewhat fixed ply read and added some matlab files.