Removed Test Code and added comments.