Finished modal code; cleaned up demo and documentation