fixed prototyping, updated readme