fixed a few bugs; now reads header information and counts points correctly. still yet to fix getpoint.