Inserted PLY parser, improved rendering fucntions

Corrected and improved rendering function.