Added tests and cleaned up utility functions.
Merge pull request #5 from Samnsparky/init_util

Added tests and cleaned up utility functions.