Added missing RedBase.cpp
Refactor exception package
added test.cpp to gitignore