Added some freespace checks and corrected spelling