Fixed script saving and added test to check
Updated design documents to reflect changes to models