Fixed all Warnings and errors