New Method getFullCast and some other things.

New Method getFullCast,  and FALSE constants as uppercase, some variables initialization and preventing  some accidental assignment in a condition, curl part as a function that can be used in other functions if needed, some refactoring, fix some notices.