Various changes to get unit testing to work.

- Added nose package
- Updated requirements file
- Added init files to packages
- Wrote unit tests for sigmoid