Added private constructor to main class

Added private constructor to main class to prevent NullPointerException while getInstance() is called on an constructed object.