Minor bug fixed. All compiler warnings eradicated.