Added cast to remove warning
Added compiler warnings
Added input/output/error process files