added test for main classes, and added some readme examples