Final Commit on 11/19/2013

This is FINAL version of the code with all bug fixes and further
amendments.