refactored cuda error handling; remove optional dependancies in soft cascade training app