added new features and fixed some bugs