- Fixed inconsistent return values for functions that return int
- Updated documentation
- Updated TODO