added main method to call parser