Added viewport and point class, improved code

Added viewport and point class.
Improved code.