Implemented script testing. Added missing header comments.