Working alpha version -- documenting code