removed unused functions, added source tree command