Cleaned up implementation of SDL and fixed minor issues with text parsing.