changes made to comply with more coding standards

added init and destroy methods