Implemented dependency sort.
Removed unnecessary artifact definitions and renamed Artifact.scala to Module.scala.
Renamed function properly.
Removed name attribute.