Removed some unused methods.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>
- Fixed some minor problems and warnings.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>