added incomplete function for number check

Signed-off-by: Stefan Venz <ikstream86@gmail.com>
added some minor changes for improvement

Signed-off-by: Stefan Venz <ikstream86@gmail.com>