Fixed code style & added few extra checks.
Updated cart documentation.
2 files changed