code complete!  just need to bug test!
added unloading code