refactored raid checks
ignoring eclispe stuff
refactoring
Initial big refactoring done.