plotData implemented, sigmoid refactored