merging onto Master.
Added error checking to sys calls in need of it.
merge
merging exec to origin and visa versa.
Merging.