tidying up core libraries
error corrected and bogus code removed