Updated Scripts and Architecture v2

Includes working scripts and libraries.