Fixes return random data or non void function: issue#4

Added declarations to fix issue#4