Cleaned up resizing. Added function for checking points.