added useful utility functions and removed unnecessary files