removed uses of old string library
removed redundant comments and empty lines
added calls to parent __init__ method
fixed typo