made it so that writeFile calls allPoints correctly
added a todo to make sure the error gotten previously does not happen again