done issue #43; re-factored mutex synchronization in sc_memory interface (old functions deprecated); some comments and variable names fixed;