Added new functions and tests.
Improved code quality
Merge pull request #3 from dpolcyn/bug_2442

Created new api for start, end view.