Bug fixes, Makefile update
Merge remote-tracking branch 'origin/master'