Removed unreliable SP code

Changed vars to allow beautons
edited witdhs
commented out main until I know what makes everything so horrible