Big.

1. Fixing setup projects.
2. Fixing matlab locks.