QC Work

- Memory Leak Fix
- QC Implementations 
- QC Function Tests