clean unused libraries, solved permissions, solved minor bugs