Added a constructor that sets the $filename property to default savepath