 module.exports.parseOptionAs2DVector = parseOptionAs2DVector
 module.exports.parseOptionAsFloat = parseOptionAsFloat
 module.exports.parseOptionAsInt = parseOptionAsInt
-module.exports.parseOptionAsInt = parseOptionAsBool
+module.exports.parseOptionAsBool = parseOptionAsBool
 module.exports.parseOptionAsLocations = parseOptionAsLocations
 module.exports.parseCenter = parseCenter
 
 #added
 module.exports.parseParamAs3dVector = parseParamAs3dVector
-
+module.exports.parseParamAs2dVector = parseParamAs2dVector
 
 
 #needed ??

  stuff.toString(2)
  
parseCenter = (options, optionname, defaultValue, defaultValue2, vectorClass) ->
  # Parse a "center" option and force into a THREE.Vector3. If a scalar is passed it is converted
  # into a vector with equal x,y,z, if a boolean is passed and is true, take defaultvalue, otherwise defaultvalue2
  if optionname of options
    centerOption = options[optionname]
    if centerOption instanceof Array
      newDefaultValue = new vectorClass(defaultValue)
      newDefaultValue2 = new vectorClass(defaultValue2)
      for component, index  in centerOption
        if typeof component is 'boolean'
          if index is 0 

  # into a vector with equal x,y,z, if a boolean is passed and is true, take defaultvalue, otherwise defaultvalue2
  if optionname of options
    if options[optionname] == false or options[optionname] == true
      doCenter = parseOptionAsBool(options,optionname, false)  
      if doCenter
        options[optionname]=defaultValue
      else
