Fix missing return type.

Add return type to each function definition.
Merge pull request #16 from a0x77n/returnType

Fix missing return type.