Library bug fixes and Console Program update